package operacoes2;

import java.io.Serializable;
import java.util.Date;

// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.0EEBBC2E-C9CE-C7A6-8497-5183D9FBB76D]
// </editor-fold> 
public class Operacao implements Serializable {

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.2EDB7FCC-8B6B-21FA-6854-516F2B31837A]
    // </editor-fold> 
    private String numConta, descricao;
    private Date data;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.501404D5-E96F-2689-DC4F-9AF6ED37A9FE]
    // </editor-fold> 
    public Operacao(String numConta) {
        this.numConta = numConta;
        this.data =  new Date();
    }

    public String getNumConta() {
        return numConta;
    }

    public void setNumConta(String numConta) {
        this.numConta = numConta;
    }

    /**
     * @return the data
     */
    public Date getData() {
        return data;
    }

    /**
     * @param data the data to set
     */
    public void setData(Date data) {
        this.data = data;
    }

    @Override
    public String toString(){
        return this.getDescricao() + "\n";
    }

    /**
     * @return the descricao
     */
    public String getDescricao() {
        return descricao;
    }

    /**
     * @param descricao the descricao to set
     */
    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }
}

